/********************************************************************
* Copyright (c) 2013,TGS,All rights reserved.
* fileName:	SolidEntity.h	
* created:	2013/07/24 16:11

* version:	1.6
* detail: 
*********************************************************************/

#pragma once

#include "DxfEntity.h"
#include <TGS/GeoMath2.0/Polygon.h>

class SolidEntity : public DxfEntity
{
public:
	typedef TGS::GeoMath::Polygon Polygon;
	typedef TGS::GeoMath::Point Point;
public:
	SolidEntity(void);
	~SolidEntity(void);
public:
	void addPoint(const Point& point) { _solid.appendPoint(point); }
	Polygon getSolid() const { return _solid; }
	void setSolid(Polygon val) { _solid = val; }
public:
	virtual Envelope getEnvelope() const;
	virtual void render(RenderContext* renderContext);
	virtual void traslate(const Point& point);
private:
	Polygon	_solid;	
};

